package lastfm
{
  import asunit.framework.TestCase;

  /**
   * ...
   * @author Roman Marchenko
   */
  public class TestSongChooser extends TestCase
  {

    public function TestSongChooser(testMethod:String = null)
    {
      super(testMethod);
    }

    public function testSongChooser(): void
    {
      var songChooser:SongChooser = new SongChooser;
      var count:Number = 0;
      
      var song:Song;
      while (song = songChooser.choose())
      {
        assertNotNull(song.artist);
        assertNotNull(song.title);
        
        count += 1;
      }
      
      assertTrue(0 < count);
    }

  }

}